#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>

int main() {
	int a[10] = { 2, 1, 3, 5, 4, 6, 8, 7, 9, 0 };
	for (int i = 0; i < 9; i++) 
	{
		for (int j = 0; j < 10 - 1 - i; j++)
		{
			if (a[j] > a[j + 1]) {
				int t = a[j];
				a[j] = a[j + 1];
				a[j + 1] = t;
			}
		}
	}
	for (int i = 0; i < 10; i++) {
		printf("%d ", a[i]);
	}
	return 0;
}